package org.neuedu.vblogserver.mapper;

import org.neuedu.vblogserver.bean.Role;
import org.neuedu.vblogserver.bean.User;
import org.neuedu.vblogserver.bean.UserBean;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User loaderUserByUsername(String s);

    List<Role> getRolesById(Long id);

    List<UserBean> getUsers(String serchKeyWord);
}